package com.lighthouse.doc.search.service;

import java.util.List;
import com.lighthouse.doc.search.domain.KnowledgeDocSearch;

/**
 * searchService接口
 * 
 * @author ysz
 * @date 2023-08-15
 */
public interface IKnowledgeDocSearchService 
{
    /**
     * 查询search
     * 
     * @param userId search主键
     * @return search
     */
    public KnowledgeDocSearch selectKnowledgeDocSearchByUserId(Long userId);

    /**
     * 查询search列表
     * 
     * @param knowledgeDocSearch search
     * @return search集合
     */
    public List<KnowledgeDocSearch> selectKnowledgeDocSearchList(KnowledgeDocSearch knowledgeDocSearch);

    /**
     * 查询search列表
     *
     * @param knowledgeDocSearch search
     * @return search集合
     */
    public List<KnowledgeDocSearch> selectKnowledgeDocSearchListHistory(KnowledgeDocSearch knowledgeDocSearch);

    /**
     * 查询search列表
     *
     * @param knowledgeDocSearch search
     * @return search集合
     */
    public List<KnowledgeDocSearch> selectKnowledgeDocSearchListHot(KnowledgeDocSearch knowledgeDocSearch);

    /**
     * 新增search
     * 
     * @param knowledgeDocSearch search
     * @return 结果
     */
    public int insertKnowledgeDocSearch(KnowledgeDocSearch knowledgeDocSearch);

    /**
     * 修改search
     * 
     * @param knowledgeDocSearch search
     * @return 结果
     */
    public int updateKnowledgeDocSearch(KnowledgeDocSearch knowledgeDocSearch);

    /**
     * 批量删除search
     * 
     * @param userIds 需要删除的search主键集合
     * @return 结果
     */
    public int deleteKnowledgeDocSearchByUserIds(Long[] userIds);

    /**
     * 删除search信息
     * 
     * @param userId search主键
     * @return 结果
     */
    public int deleteKnowledgeDocSearchByUserId(Long userId);
}
